* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #121212;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  padding: 20px;
}

a {
  color: #fff;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 6px 15px;
  flex: 1;
  margin: 0 15px;
  max-width: 280px;
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  outline: none;
  font-size: 14px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-btn {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

/* 视频轮播区域样式 */
.video-banner {
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 200px;
  overflow: hidden;
  margin-bottom: 20px;
  z-index: 50;
}

.video-banner video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 70%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
  max-width: 1200px;
  width: 100%;
}

.video-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.video-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.btn-primary {
  background-color: #ff4d4f;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255,77,79,0.3);
}

.btn-primary:hover {
  background-color: #ff7875;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,77,79,0.4);
}

/* 游戏分类模块样式 */
.game-category {
  background-color: rgba(18, 18, 18, 0.8);
  border-radius: 10px;
  margin: 0 15px 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.category-container {
  max-width: 1200px;
  margin: 0 auto;
}

.category-title {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;
  padding-left: 10px;
}

.category-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background-color: #ff4d4f;
  border-radius: 3px;
}
/* 游戏分类模块样式 - 新增图标样式 */
.game-icon {
  width: 24px;
  height: 24px;
  margin-right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 游戏信息悬浮框中的图标样式 */
.game-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.game-logo {
  /* 移除原来的字体图标样式 */
  width: 80px;
  height: 80px;
}

.game-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
}


.game-list {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.game-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.game-item.active {
  background-color: #ff4d4f;
  color: #fff;
}

.game-item i {
  margin-right: 5px;
  font-size: 16px;
}

/* 游戏信息悬浮框样式 */
.game-info-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 500px;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
}

.game-info-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.popup-content {
  padding: 20px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.popup-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.close-popup {
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
}

.close-popup:hover {
  color: #fff;
}

.popup-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

.game-logo-container {
  display: flex;
  justify-content: center;
}

.game-logo {
  font-size: 60px;
  color: #ff4d4f;
}

.game-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.meta-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.meta-value {
  color: #fff;
  font-size: 12px;
}

.popup-footer {
  display: flex;
  justify-content: center;
}

.play-game-btn {
  background-color: #ff4d4f;
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.play-game-btn:hover {
  background-color: #ff7875;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 77, 79, 0.3);
}

/* 游戏视频播放框样式 (修改后) */
.game-video-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0a0a0a;
  border-radius: 10px;
  width: 300px;
  max-width: 300px;
  z-index: 290;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.game-video-player.active {
  opacity: 1;
  visibility: visible;
}

.video-player-content {
  position: relative;
}

#game-video {
  width: 100%;
  height: auto;
  display: block;
}

.close-video-player {
  position: absolute;
  top: 10px;
  right: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  background-color: rgba(0, 0, 0, 0.5);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.close-video-player:hover {
  color: #fff;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  font-size: 12px;
}

.nav-item.active {
  color: #ff4d4f;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

/* 主内容区 */
.main-content {
  padding: 60px 15px 80px;
  margin-top: 20px;
}

.section-title {
  font-size: 18px;
  margin: 25px 0 15px;
  font-weight: 600;
  position: relative;
  padding-left: 10px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background-color: #ff4d4f;
  border-radius: 3px;
}

/* 正在进行的赛事 */
.live-section {
  margin-bottom: 30px;
}

.live-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 10px;
}

.live-container::-webkit-scrollbar {
  display: none;
}

.live-item {
  min-width: 240px;
  background-color: #121212;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  flex: 0 0 240px;
}

.live-item:hover {
  transform: translateY(-5px);
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff4d4f;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.live-badge i {
  margin-right: 3px;
  font-size: 10px;
}

.live-thumb {
  position: relative;
}

.live-thumb img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.live-play {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.live-play:hover {
  background-color: #ff4d4f;
}

.viewer-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.live-info {
  padding: 10px 12px;
}

.live-info h3 {
  font-size: 15px;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-teams {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.team {
  display: flex;
  align-items: center;
  gap: 5px;
}

.team img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.score {
  font-weight: bold;
  color: #ff4d4f;
}

/* 即将开始的赛事 */
.upcoming-section {
  margin-bottom: 30px;
}

.upcoming-container {
  display: grid;
  grid-template-columns:  1fr;
  gap: 15px;
}
/* 中等屏幕以上显示2列 */
@media (min-width: 768px) {
  .upcoming-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 大屏幕以上显示3列 */
@media (min-width: 1024px) {
  .upcoming-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.upcoming-item {
  background-color: #121212;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  flex-direction: column; /* 改为垂直布局 */
}

.upcoming-item:hover {
  transform: translateY(-5px);
}

.upcoming-time {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
   padding: 10px;
  font-size: 12px;
   border-radius: 10px 10px 0 0; /* 只圆角化顶部 */
}

.date {
  font-weight: 500;
}

.countdown {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.upcoming-match {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  justify-content: center; /* 队伍信息居中 */
}

.vs {
  color: #ff4d4f;
  font-weight: bold;
    font-size: 16px;
    
}

.match-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
   justify-content: center; /* 比赛信息居中 */
}

.tournament {
 font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center; /* 文字居中 */
  flex: 1; /* 占满剩余空间 */
  min-width: 100%; /* 确保换行 */
}

.game {
   font-size: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  align-self: center; /* 游戏标签居中 */
}
/* 队伍图标优化 */
.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.team img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.team span {
  font-size: 12px;
  white-space: nowrap; /* 队伍名称不换行 */
}
/* 精彩回放 */
.highlights-section {
  margin-bottom: 30px;
}

.highlights-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
}

.highlight-item {
  background-color: #121212;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-5px);
}

.highlight-thumb {
  position: relative;
  width: 120px;
  height: 100%;
}

.highlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.highlight-item:hover .play-overlay {
  opacity: 1;
}

.play-overlay i {
  color: #fff;
  font-size: 14px;
}

.duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 3px;
}

.highlight-info {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.highlight-info h3 {
  font-size: 14px;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.highlight-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 200;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #1e1e1e;
  border-radius: 10px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.close-modal {
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

#video-player {
  width: 100%;
  height: auto;
  background-color: #000;
  border-radius: 6px;
}

/* 通知提示样式 */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  background-color: rgba(18, 18, 18, 0.95);
  border-radius: 8px;
  padding: 12px 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  transform: translateX(150%);
  opacity: 0;
  transition: all 0.3s ease;
}

.notification.active {
  transform: translateX(0);
  opacity: 1;
}

.notification.success {
  border-left: 4px solid #52c41a;
}

.notification.error {
  border-left: 4px solid #ff4d4f;
}

.notification.warning {
  border-left: 4px solid #faad14;
}

.notification.info {
  border-left: 4px solid #1890ff;
}

.notification-icon {
  font-size: 18px;
}

.notification.success .notification-icon {
  color: #52c41a;
}

.notification.error .notification-icon {
  color: #ff4d4f;
}

.notification.warning .notification-icon {
  color: #faad14;
}

.notification.info .notification-icon {
  color: #1890ff;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.notification-message {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.notification-close {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  transition: color 0.3s ease;
}

.notification-close:hover {
  color: #fff;
}
/* 响应式调整 */
@media (max-width: 768px) {
  .game-icon {
    width: 20px;
    height: 20px;
  }
  
  .game-logo {
    width: 60px;
    height: 60px;
  }
}

/* 响应式布局 */
@media (min-width: 768px) {
  .upcoming-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .highlights-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .game-info-popup {
    max-width: 600px;
  }
  
  .game-video-player {
    max-width: 600px;
  }
}

@media (min-width: 1024px) {
  .live-container {
    flex-wrap: wrap;
  }
  
  .live-item {
    min-width: calc(33.333% - 10px);
    flex: 0 0 calc(33.333% - 10px);
  }
  
  .upcoming-container {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .highlights-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .header {
    padding: 0 50px;
  }
  
  .main-content {
    padding: 80px 50px 100px;
  }
}